Next commit will allow removing icons from the folder, and we want to
do that effectively after the dialog pops down.
Add an optional callback to AppFolderDialog.popdown().
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1447
this._sourceMappedId = 0;
this._popdownTimeoutId = 0;
this._needsZoomAndFade = false;
+
+ this._popdownCallbacks = [];
}
_addFolderNameEntry() {
opacity: 255,
});
this.hide();
+
+ this._popdownCallbacks.forEach(func => func());
+ this._popdownCallbacks = [];
},
});
this.emit('open-state-changed', true);
}
- popdown() {
+ popdown(callback) {
+ // Either call the callback right away, or wait for the zoom out
+ // animation to finish
+ if (callback) {
+ if (this.visible)
+ this._popdownCallbacks.push(callback);
+ else
+ callback();
+ }
+
if (!this._isOpen)
return;